海洋听书[听].js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var rule = {
  2. 类型: '听书',
  3. title: '海洋听书',
  4. 编码: 'gb18030',
  5. host: 'http://m.ychy.cc',
  6. homeUrl: '/best.html',
  7. url: '/list/fyclass_fypage.html',
  8. searchUrl: '/search.asp?page=fypage&searchword=**&searchtype=-1',
  9. searchable: 2,
  10. quickSearch: 0,
  11. headers: {
  12. 'User-Agent': 'MOBILE_UA'
  13. },
  14. class_name: '网络玄幻&恐怖悬疑&评书下载&儿童读物&相声戏曲&传统武侠&都市言情&历史军事&人物传记&广播剧&百家讲坛&有声文学&探险盗墓&职场商战',
  15. class_url: '52&17&3&4&7&12&13&15&16&18&32&41&45&81',
  16. play_parse: true,
  17. lazy: '',
  18. limit: 6,
  19. double: true,
  20. 推荐: '*',
  21. 一级: '.list-ul li;.tit&&Text;img&&src;p span:eq(0)&&Text;a&&href',
  22. 二级: {
  23. title: 'h2&&Text;.info div:eq(4)&&Text',
  24. img: '.bookimg img&&src',
  25. desc: '.info div:eq(3)&&Text;;;.info div:eq(2)&&Text;.info div:eq(1)&&Text',
  26. content: '.book_intro&&Text',
  27. tabs: '.sub_tit',
  28. lists: '#playlist li',
  29. // lists: `js:
  30. // pd = jsp.pd;
  31. // let url = pd(html, ".bookbutton&&a&&href");
  32. // // log(url);
  33. // html = request(url);
  34. // let v = pd(html, ".booksite&&script&&Html");
  35. // var document = {};
  36. // var VideoListJson;
  37. // VideoListJson = eval(v.split("VideoListJson=")[1].split(",urlinfo")[0]);
  38. // // log(typeof VideoListJson);
  39. // let list1 = VideoListJson[0][1];
  40. // LISTS = [list1];
  41. // // log(LISTS);
  42. // `,
  43. },
  44. 搜索: `js:
  45. let d = [];
  46. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  47. // log(input);
  48. let html = request(input);
  49. var list = pdfa(html, '.book_slist&&.bookbox');
  50. list.forEach(function(it) {
  51. d.push({
  52. title: pdfh(it, 'h4&&Text'),
  53. desc: pdfh(it, '.update&&Text'),
  54. pic_url: pd(it, 'img&&orgsrc'),
  55. url: 'http://m.ychy.com/book/' + pdfh(it, '.bookbox&&bookid') + '.html'
  56. })
  57. });
  58. setResult(d);
  59. `,
  60. }